package com.example.view.module.event;

import android.view.MotionEvent;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.example.common.base.AbsActivity;
import com.example.common.utils.L;
import com.example.view.R;
import com.example.view.databinding.ActEventTouchBinding;
import com.example.view.utils.TouchEventUtil;

@Route(path = "/event/touchEvent")
public class TouchEventActivity extends AbsActivity<ActEventTouchBinding> {
    @Override
    protected int getLayoutId() {
        return R.layout.act_event_touch;
    }

    @Override
    protected void main() {

    }

    @Override
    protected void initListener() {

    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        L.e("Activity | dispatchTouchEvent --> " + TouchEventUtil.getTouchAction(ev.getAction()));
        return super.dispatchTouchEvent(ev);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        L.e("Activity | onTouchEvent --> " + TouchEventUtil.getTouchAction(event.getAction()));
        return super.onTouchEvent(event);
    }
}
